M=3; N=3; K=1; L=1; D=2; students=[|1,1,1,2| 1,1,2,1|];